home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / gdb35src.zoo / dist-gdb / makefile < prev    next >
Encoding:
Makefile  |  1993-03-05  |  8.0 KB  |  227 lines

  1. # 1 "tmp.c"
  2.  
  3. XGDB=
  4.  
  5. bindir=/usr/local/bin
  6.  
  7. xbindir=$(bindir)
  8.  
  9. CC=gcc
  10.  
  11. YACC=bison -y -v
  12.  
  13. SHELL=/c/mint/bash.ttp
  14. MAKE=make
  15.  
  16. CC-LD=${CC}
  17.  
  18. GLOBAL_CFLAGS = -g -DMAXPATHLEN=128 
  19. CFLAGS = -I. ${HAVE_VPRINTF_DEFINE} ${GLOBAL_CFLAGS}
  20.  
  21. LDFLAGS = $(GLOBAL_CFLAGS)
  22.  
  23. OBSTACK = obstack.o
  24. OBSTACK1 = obstack.o
  25.  
  26. REGEX = regex.o
  27. REGEX1 = regex.o 
  28.  
  29. ALLOCA = 
  30. ALLOCA1 =
  31.  
  32. GNU_MALLOC = malloc.o
  33.  
  34. MALLOC_FLAGS = ${CFLAGS} -Drcheck -Dbotch=fatal_dump_core -DMSTATS
  35.  
  36. SYSV_DEFINE =
  37.  
  38. MUNCH_DEFINE = ${SYSV_DEFINE}
  39.  
  40. TERMCAP = -ltermcap
  41.  
  42. CLIBS = ${ADD_FILES} ${TERMCAP}  
  43.  
  44. ADD_FILES = ${OBSTACK} ${REGEX} ${ALLOCA} ${GNU_MALLOC}
  45. ADD_DEPS = ${OBSTACK1} ${REGEX1} ${ALLOCA1} ${GNU_MALLOC}
  46.  
  47. SFILES = blockframe.c breakpoint.c dbxread.c coffread.c command.c core.c      environ.c eval.c expprint.c findvar.c infcmd.c inflow.c infrun.c      kdb-start.c main.c printcmd.c      remote.c source.c stack.c standalone.c stuff.c symmisc.c symtab.c      utils.c valarith.c valops.c valprint.c values.c version.c expread.y      xgdb.c
  48.  
  49. DEPFILES = umax-dep.c gould-dep.c default-dep.c sun3-dep.c        sparc-dep.c hp9k320-dep.c hp300bsd-dep.c news-dep.c i386-dep.c        symmetry-dep.c convex-dep.c altos-dep.c isi-dep.c pyr-dep.c
  50.  
  51. PINSNS = gld-pinsn.c i386-pinsn.c sparc-pinsn.c vax-pinsn.c 1 -pinsn.c      ns32k-pinsn.c convex-pinsn.c pyr-pinsn.c
  52.  
  53. HFILES = command.h defs.h environ.h expression.h frame.h getpagesize.h      inferior.h symseg.h symtab.h value.h wait.h      a.out.encap.h a.out.gnu.h stab.gnu.h 
  54.  
  55. OPCODES = 1 -opcode.h pn-opcode.h sparc-opcode.h npl-opcode.h vax-opcode.h       ns32k-opcode.h convex-opcode.h pyr-opcode.h
  56.  
  57. MFILES = m-hp9k320.h m-hp300bsd.h m-i386.h m-i386gas.h   m-i386-sv32.h m-i386g-sv32.h m-isi.h m-merlin.h   m-altos.h m-news.h m-newsos3.h m-npl.h m-pn.h   m-sparc.h m-sun2.h m-sun3.h m-sun2os4.h   m-sun3os4.h m-sun4os4.h m-umax.h m-vax.h m-symmetry.h m-convex.h   m-pyr.h
  58.  
  59. READLINE = readline.c history.c funmap.c   emacs_keymap.c vi_keymap.c vi_mode.c keymaps.c   readline.h history.h keymaps.h chardefs.h   inc-readline.texinfo inc-history.texinfo   readline.texinfo history.texinfo   Makefile ChangeLog
  60.  
  61. REMOTE_EXAMPLES = remote-sa.1 .shar remote-multi.shar
  62.  
  63. POSSLIBS = obstack.h obstack.c regex.c regex.h malloc.c alloca.c
  64.  
  65. TESTS = testbpt.c testfun.c testrec.c testreg.c testregs.c
  66.  
  67. OTHERS = Makefile.dist createtags munch config.gdb ChangeLog README TAGS      gdb.texinfo .gdbinit COPYING expread.tab.c stab.def      XGDB-README copying.c Projects Convex.notes copying.awk hp-include
  68.  
  69. TAGFILES = ${SFILES} ${DEPFILES} ${PINSNS} ${HFILES} ${OPCODES} ${MFILES}        ${POSSLIBS} 
  70.  
  71. TARFILES = ${TAGFILES} ${OTHERS} ${REMOTE_EXAMPLES}
  72.  
  73. OBS = init.o main.o blockframe.o breakpoint.o findvar.o stack.o source.o     values.o eval.o valops.o valarith.o valprint.o printcmd.o     symtab.o symmisc.o coffread.o dbxread.o infcmd.o infrun.o remote.o     command.o utils.o expread.o expprint.o pinsn.o environ.o version.o     copying.o ${READLINEOBS} atariwait.o
  74.  
  75. TSOBS = core.o inflow.o dep.o
  76.  
  77. NTSOBS = standalone.o
  78.  
  79. TSSTART = /lib/crt0.o
  80.  
  81. NTSSTART = kdb-start.o
  82.  
  83. #RL_LIB = readline/libreadline.a
  84. RL_LIB = /c/gnu/lib/readline.olb
  85.  
  86. MD= 
  87.  
  88. TARGET_ARCH=
  89.  
  90. all: ngdb $(XGDB)
  91.  
  92. install: gdb $(XGDB)
  93.     cp gdb $(bindir)/gdb.new
  94.     mv $(bindir)/gdb.new $(bindir)/gdb
  95.     -if [ "$(XGDB)" = xgdb ]; then         cp xgdb $(xbindir)/xgdb.new;         mv $(xbindir)/xgdb.new $(xbindir)xgdb;     fi
  96.  
  97. ngdb : $(OBS) $(TSOBS) ${ADD_DEPS} ${RL_LIB}
  98. #    rm -f init.c
  99. #    $(SHELL) ./munch ${MUNCH_DEFINE} $(OBS) $(TSOBS) > init.c
  100.     ${CC-LD} $(LDFLAGS) -o ngdb $(OBS) $(TSOBS) ${RL_LIB} $(CLIBS)
  101. #    sym-ld -o ngdb.sym /c/gnu/lib/crt0.o $(OBS) $(TSOBS) ${RL_LIB} $(CLIBS) -lgnu
  102.     
  103. gdb1 : gdb
  104.     cp gdb gdb1
  105.  
  106. Makefile : Makefile.dist
  107.     cp Makefile.dist tmp.c
  108.     $(CC) -E >Makefile tmp.c $(MD) "-DM_MAKEDEFINE=$(MD)"
  109.     -rm tmp.c
  110.  
  111. xgdb : $(OBS) $(TSOBS) xgdb.o ${ADD_DEPS} ${RL_LIB}
  112.     rm -f init.c
  113.     ./munch ${MUNCH_DEFINE} $(OBS) $(TSOBS) xgdb.o > init.c
  114.     $(CC-LD) $(LDFLAGS) -o xgdb init.c $(OBS) $(TSOBS) xgdb.o     -lXaw -lXmu -lXt -lX11 ${RL_LIB} $(CLIBS)
  115.  
  116. kdb : $(NTSSTART) $(OBS) $(NTSOBS) ${ADD_DEPS} ${RL_LIB}
  117.     rm -f init.c
  118.     ./munch ${MUNCH_DEFINE} $(OBS) $(NTSOBS) > init.c
  119.     $(CC) $(LDFLAGS) -c init.c $(CLIBS) 
  120.     ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o ${RL_LIB} -lc $(CLIBS)
  121.  
  122. TAGS: ${TAGFILES}
  123.     createtags ${TAGFILES}
  124. tags: TAGS
  125.  
  126. gdb.tar: ${TARFILES}
  127.     rm -f gdb.tar
  128.     mkdir dist-gdb
  129.     cd dist-gdb ; for i in ${TARFILES} ; do ln -s ../$$i . ; done
  130.     mkdir dist-gdb/readline
  131.     cd dist-gdb/readline ; for i in ${READLINE} ; do ln -s ../../readline/$$i . ; done
  132.     tar chf gdb.tar dist-gdb
  133.     rm -rf dist-gdb
  134.  
  135. gdb.tar.Z: gdb.tar
  136.     if [ -f gdb.tar.Z ]; then rm -f gdb.tar.Z; else true; fi
  137.     compress gdb.tar
  138.  
  139. clean:
  140.     rm -f ${OBS} ${TSOBS} ${NTSOBS} ${OBSTACK} ${REGEX} ${GNU_MALLOC}
  141.     rm -f init.c init.o
  142.     rm -f xgdb.o xgdb
  143.     rm -f gdb core gdb.tar gdb.tar.Z make.log
  144.     rm -f gdb[0-9]
  145.     cd readline ; make clean
  146.  
  147. distclean: clean expread.tab.c TAGS
  148.     rm -f dep.c opcode.h param.h pinsn.c config.status
  149.     rm -f y.output yacc.acts yacc.tmp
  150.     rm -f ${TESTS} Makefile
  151.  
  152. realclean: clean
  153.     rm -f expread.tab.c TAGS
  154.     rm -f dep.c opcode.h param.h pinsn.c config.status
  155.     rm -f Makefile
  156.  
  157. xgdb.o : defs.h param.h symtab.h frame.h
  158.  
  159.  
  160. copying.c : COPYING copying.awk
  161.     awk -f copying.awk < COPYING > copying.c
  162.  
  163. expread.tab.c : expread.y
  164.     @echo 'Expect 4 shift/reduce conflict.'
  165.     ${YACC} expread.y
  166.     mv y.tab.c expread.tab.c
  167.  
  168. expread.o : expread.tab.c defs.h param.h symtab.h frame.h expression.h
  169.     $(CC) -c ${CFLAGS} expread.tab.c
  170.     mv expread.tab.o expread.o
  171.  
  172. readline/libreadline.a : force_update
  173.     cd readline ; ${MAKE} "SYSV=${SYSV_DEFINE}"         "DEBUG_FLAGS=${GLOBAL_CFLAGS}" "CC=${CC}" libreadline.a
  174.  
  175. force_update :
  176.  
  177.  
  178. malloc.o : malloc.c
  179.     ${CC} -c ${MALLOC_FLAGS} malloc.c
  180.  
  181.  
  182. dep.o : dep.c config.status defs.h param.h frame.h inferior.h obstack.h     a.out.encap.h
  183.  
  184. pinsn.o : pinsn.c config.status defs.h param.h symtab.h obstack.h symseg.h       frame.h opcode.h
  185.  
  186. blockframe.o : defs.h param.h config.status symtab.h obstack.h symseg.h frame.h 
  187. breakpoint.o : defs.h param.h config.status symtab.h obstack.h symseg.h frame.h
  188. coffread.o : defs.h param.h config.status 
  189. command.o : command.h defs.h
  190. core.o : defs.h  param.h config.status a.out.encap.h
  191. dbxread.o : param.h config.status defs.h symtab.h obstack.h symseg.h a.out.encap.h         stab.gnu.h
  192.  
  193. environ.o : environ.h 
  194. eval.o : defs.h  param.h config.status symtab.h obstack.h symseg.h value.h expression.h 
  195. expprint.o : defs.h symtab.h obstack.h symseg.h param.h config.status expression.h
  196. findvar.o : defs.h param.h config.status symtab.h obstack.h symseg.h frame.h value.h 
  197. infcmd.o : defs.h  param.h config.status symtab.h obstack.h symseg.h frame.h inferior.h        environ.h value.h
  198.  
  199. inflow.o : defs.h  param.h config.status frame.h inferior.h
  200. infrun.o : defs.h  param.h config.status symtab.h obstack.h symseg.h frame.h inferior.h        wait.h
  201.  
  202. kdb-start.o : defs.h param.h config.status 
  203. main.o : defs.h  command.h param.h config.status
  204. malloc.o :  getpagesize.h
  205. obstack.o : obstack.h 
  206. printcmd.o :  defs.h param.h config.status frame.h symtab.h obstack.h symseg.h value.h           expression.h 
  207.  
  208. regex.o : regex.h 
  209. remote.o : defs.h  param.h config.status frame.h inferior.h wait.h
  210. source.o : defs.h  symtab.h obstack.h symseg.h param.h config.status
  211. stack.o :  defs.h param.h config.status symtab.h obstack.h symseg.h frame.h 
  212. standalone.o : defs.h param.h config.status symtab.h obstack.h symseg.h frame.h            inferior.h wait.h 
  213.  
  214. symmisc.o : defs.h symtab.h obstack.h symseg.h obstack.h 
  215. symtab.o : defs.h  symtab.h obstack.h symseg.h param.h config.status  obstack.h
  216. utils.o : defs.h  param.h config.status 
  217. valarith.o : defs.h param.h config.status symtab.h obstack.h symseg.h value.h expression.h 
  218. valops.o :  defs.h param.h config.status symtab.h obstack.h symseg.h value.h frame.h         inferior.h
  219.  
  220. valprint.o :  defs.h param.h config.status symtab.h obstack.h symseg.h value.h 
  221. values.o :  defs.h param.h config.status symtab.h obstack.h symseg.h value.h 
  222.  
  223. robotussin.h : getpagesize.h   
  224. symtab.h : obstack.h symseg.h 
  225. a.out.encap.h : a.out.gnu.h
  226.  
  227.